function serialToJson(form) {
    let result = {};
    let f = form.serializeArray();
    f.forEach((item) => {
        // result.email = '用户输入的值'
        result[item.name] = item.value;
    });
    return result;
}